import axios from './axios'


// 单图片上传
export function doUpload(data){
  return axios({
    method: 'post',
    url:'/upload/doUpload',
    data
  })
}
export function kindsNumberDoUpload(data){
  return axios({
    method: 'post',
    url:'/upload/kindsNumberDoUpload',
    data
  })
}
export function currentAccountDoUpload(data){
  return axios({
    method: 'post',
    url:'/upload/currentAccountDoUpload',
    data
  })
}
export function washWaterMarkDoUpload(data){
  return axios({
    method: 'post',
    url:'/upload/washWaterMarkDoUpload',
    data
  })
}

// 删除上传的图片
export function deleteImage(params){
  return axios({
    method: 'delete',
    url:'/upload/deleteImage',
    params
  })
}

// 流水账图片地址新增
export function addImage(data){
  return axios({
    method: 'post',
    url:'/current-account-image/insert',
    data
  })
}

// 根据流水账ID查询流水账图片路劲
export function getImage(params){
  return axios({
    url:'/current-account-image/list',
    params
  })
}

// 修改流水账图片路径
export function changeImage(data){
  return axios({
    method: 'put',
    url:'/current-account-image/update',
    data
  })
}

// 新增/修改列印图片地址
// sequence
// imageUrl
export function qrImage(params){
  return axios({
    method: 'put',
    url:'/customerInputTotal/insertOrUpdatePrintImage',
    params
  })
}

export function qrImageOut(params){
  return axios({
    method: 'put',
    url:'/customerOutTotal/insertOrUpdatePrintImage',
    params
  })
}
//上传
export function upPicture(data){
  return axios({
    method:'post',
    url:'upload/kindsNumberDoUploadByBatch',
    data
  })
}